package com.office.supplies.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author admin
 * @Description TODO
 * @Date 2023/12/11/15:06
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Buy implements Serializable {

    private Long id;

    private Long goodsId;

    private Long empId;

    private Integer buyCount;

    private Double price;

    private Double totalPrice;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date buyDate;

    /**
     * 状态 0-驳回 1-待审核 2-已入库
     */
    private Integer status;

    private String backReason;

}
